#ifndef _UI_H
#define _UI_H

//////////////////////////////////////////////////////////////////////////////////////
// UI Layout under 1920x1080
#define ZOOM_1920x1080		1.0
#define ZOOM_1366x768		0.71
#define ZOOM_1024x576		0.53

/*
#define USE_ZOOM			ZOOM_1920x1080	//ZOOM_1366x768
#define USE_WIDTH			1920	//1366
#define USE_HEIGHT		1080	//(USE_WIDTH*USE_ZOOM)
*/

#define USE_ZOOM			ZOOM_1366x768
#define USE_WIDTH			1366	
#define USE_HEIGHT			(USE_WIDTH*USE_ZOOM)


//////////////////////////////////////////////////////////////////////////////////////
// common layout

// oper pane on left side
#define EJS_OPER_WIDTH		(240*USE_ZOOM)
#define EJS_OPER_ICON_HEIGHT	(72*USE_ZOOM)
// blank margin on rightmost side
#define EJS_RMS_WIDTH		(40*USE_ZOOM)
// height of page head
#define EJS_HEAD_HEIGHT		((STD_UI_HEIGHT+16)*USE_ZOOM)
// height of page foot
#define EJS_FOOT_HEIGHT		((STD_UI_HEIGHT+16)*USE_ZOOM)

// num meta item in oper
#define NUM_META_IN_OPER	8
#define OPER_ICON_WIDTH		(200*USE_ZOOM)
#define OPER_ICON_HEIGHT	(48*USE_ZOOM)
///////////////////////////////////////////
// ent page
#define TITLE_HEIGHT_IN_ENT	(100*USE_ZOOM)
#define POWEROFF_WIDTH		(80*USE_ZOOM)
#define POWEROFF_HEIGHT		(80*USE_ZOOM)

#define ENT_FLIP_SIZE		(160*USE_ZOOM)
#define ENT_FLIP_RATIO		0.8
#define ROWS_PER_PRVWTILE	4
#define COLS_PER_PRVWTILE	2
#define MAJOR_ROWS_PRVWTILE	2
#define FLIPS_PER_PRVWTILE	(ROWS_PER_PRVWTILE*COLS_PER_PRVWTILE-1)
#define TILES_PER_ENTPAGE	5

#define	NUM_AUTH_CODE		6
//#define AUTH_BUTTON_SIZE	(80*USE_ZOOM)
#define AUTH_DISP_HEIGHT	(80*USE_ZOOM)
#define AUTH_PAD_WIDTH		(240*USE_ZOOM)
#define AUTH_PAD_HEIGHT		(320*USE_ZOOM)

///////////////////////////////////////////
// cls page
// total rows in cls page
#define LVIS_PER_CLS		8
// total cols in cls row
#define PAGES_PER_CLSLVI	8
// height per cls page
#define CLS_LVI_HEIGHT		(280*USE_ZOOM)

///////////////////////////////////////////
// dbl page
#define WIDTH_IN_DBLPAGE	(600*USE_ZOOM)

///////////////////////////////////////////
// sgl page
#define WITH_IN_SGLPAGE		(1600*USE_ZOOM)

#define CLIPS_PER_ROW		3
#define CLIPS_PER_COL		4
#define CLIP_VIEW_WIDTH		(560*USE_ZOOM)
#define CLIP_PRVW_HEIGHT	(480*USE_ZOOM)

#endif

